package com.panshi.modules.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.panshi.modules.domain.SysUser;
import com.panshi.vo.SysUserVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 857
 * @since 2020-07-29
 */
public interface SysUserService {

   //查询所有
   List<SysUserVO> listSysUser();

   //c查询系统用户分页列表
   IPage<SysUser> pageUserList(IPage<SysUser> page);

   //通过用户名查询角色,菜单
   SysUserVO getSysUserByUsername(String username);

   //通过id查询
   SysUserVO getSysUserById(Long id);

   //新增
   int saveSysUser(SysUserVO sysUserVO);

   //编辑
   int updateSysUser(SysUserVO sysUserVO);

   //删除
   int deleteSysUser(Integer id);

   int selectCountByUsername(String username,Integer id);

}
